package com.campus.common.service;

import com.campus.common.domain.LoginUser;
import com.campus.common.domain.User;
import com.campus.common.dto.UserDto;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

public interface LoginUserService {
    // 通过用户名查询属用户信息
    public LoginUser loginByUsername(UserDto userDto);
    // 通过手机号查询属用户信息
    public LoginUser loginByPhoneNumber(UserDto userDto);
    // 通过邮箱查询属用户信息
    public LoginUser loginByEmail(UserDto userDto);
    // 认证账号密码
    public Boolean authenticate(String loginPassword, String password);
}
